package com.ruoyi.xsp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 登录日志对象 xsp_user_login_log
 * 
 * @author zhiminhu
 * @date 2021-01-22
 */
public class XspUserLoginLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID 自增 */
    private Long id;

    /** UUID */
    @Excel(name = "UUID")
    private Long userId;

    /** 用户短号码 */
    @Excel(name = "用户短号码")
    private Long userCode;

    /** uuid */
    private String socialUserId;

    /** 第三方用户来源 */
    @Excel(name = "第三方用户来源")
    private String source;

    /** 手机型号-预留 */
    private String phoneModel;

    /** 登录IP地址 */
    @Excel(name = "登录IP地址")
    private String ipaddr;

    /** 登录地点 */
    @Excel(name = "登录地点")
    private String loginLocation;

    /** 浏览器类型 */
    @Excel(name = "浏览器类型")
    private String browser;

    /** 操作系统 */
    @Excel(name = "操作系统")
    private String os;

    /** 动作类型 */
    @Excel(name = "动作类型")
    private Integer actionType;

    /** 用户注册标记 */
    @Excel(name = "用户注册标记")
    private Integer isNewUser;

    /** 登录设备号 */
    private String deviceNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserCode(Long userCode)
    {
        this.userCode = userCode;
    }

    public Long getUserCode()
    {
        return userCode;
    }
    public void setSocialUserId(String socialUserId) 
    {
        this.socialUserId = socialUserId;
    }

    public String getSocialUserId() 
    {
        return socialUserId;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setPhoneModel(String phoneModel) 
    {
        this.phoneModel = phoneModel;
    }

    public String getPhoneModel() 
    {
        return phoneModel;
    }
    public void setIpaddr(String ipaddr) 
    {
        this.ipaddr = ipaddr;
    }

    public String getIpaddr() 
    {
        return ipaddr;
    }
    public void setLoginLocation(String loginLocation) 
    {
        this.loginLocation = loginLocation;
    }

    public String getLoginLocation() 
    {
        return loginLocation;
    }
    public void setBrowser(String browser) 
    {
        this.browser = browser;
    }

    public String getBrowser() 
    {
        return browser;
    }
    public void setOs(String os) 
    {
        this.os = os;
    }

    public String getOs() 
    {
        return os;
    }
    public void setActionType(Integer actionType) 
    {
        this.actionType = actionType;
    }

    public Integer getActionType() 
    {
        return actionType;
    }
    public void setIsNewUser(Integer isNewUser) 
    {
        this.isNewUser = isNewUser;
    }

    public Integer getIsNewUser() 
    {
        return isNewUser;
    }
    public void setDeviceNum(String deviceNum) 
    {
        this.deviceNum = deviceNum;
    }

    public String getDeviceNum() 
    {
        return deviceNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userCode", getUserCode())
            .append("socialUserId", getSocialUserId())
            .append("source", getSource())
            .append("phoneModel", getPhoneModel())
            .append("ipaddr", getIpaddr())
            .append("loginLocation", getLoginLocation())
            .append("browser", getBrowser())
            .append("os", getOs())
            .append("actionType", getActionType())
            .append("isNewUser", getIsNewUser())
            .append("deviceNum", getDeviceNum())
            .append("createTime", getCreateTime())
            .toString();
    }
}
